import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/Dtrwlist/getList',
    method: 'get',
    params: query
  })
}
// 分组列表
export function getfzList(query) {
  return request({
    url: '/Khfp/getList',
    method: 'get',
    params: query
  })
}

// 标签列表
export function getbqList(query) {
  return request({
    url: '/Cdfp/getList',
    method: 'get',
    params: query
  })
}

// 资源库列表

export function getZylist(query) {
  return request({
    url: '/Ziy/getList',
    method: 'get',
    params: query
  })
}
// 添加任务
export function Addrw(data) {
  return request({
    url: '/Dtrwlist/dtrwzx',
    method: 'post',
    data
  })
}

export function fetchArticle(id) {
  return request({
    url: '/vue-element-admin/article/detail',
    method: 'get',
    params: { id }
  })
}

export function fetchPv(data) {
  return request({
    url: '/Dtrwlist/rwlog',
    method: 'post',
    data
  })
}

export function createArticle(data) {
  return request({
    url: '/Bbiao/getAdd',
    method: 'post',
    data
  })
}

export function updateArticle(data) {
  return request({
    url: '/admindl/Bbiao/getEdit',
    method: 'post',
    data
  })
}
export function getDel(data) {
  return request({
    url: '/admindl/Bbiao/getDel',
    method: 'post',
    data
  })
}
export function getrwzxlist(data) {
  return request({
    url: '/admindl/Bbiao/rwzxlist',
    method: 'post',
    data
  })
}

export function getadddzhrw(data) {
  return request({
    url: '/admindl/Bbiao/adddzhrw',
    method: 'post',
    data
  })
}

// 在线的账号
export function getzhlist(data) {
  return request({
    url: '/admindl/Smsck/getList',
    method: 'post',
    data
  })
}
export function getAddAll(data) {
  return request({
    url: '/admindl/Bbiao/getAddAll',
    method: 'post',
    data
  })
}

